package com.service.impl;

import com.dao.FileDao;
import com.dao.impl.FileDaoImpl;
import com.domain.FileClass;
import com.service.FileService;

import java.util.ArrayList;

public class FileServiceImpl implements FileService {

    private final FileDao dao = new FileDaoImpl();

    @Override
    public Boolean save(FileClass file) {

        return dao.save(file);
    }

    @Override
    public Boolean delete(String uuid) {

        return dao.delete(uuid);
    }

    @Override
    public ArrayList<FileClass> select() {

        return dao.select();
    }

    @Override
    public Boolean update(FileClass file) {

        return dao.update(file);
    }
}
